# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Taner Tas <taner76@gmail.com>
# Maintainer: Taner Tas <taner76@gmail.com>
pkgname=deadbeef
pkgver=1.8.3
pkgrel=0
pkgdesc="fairly capable playlist-oriented audio player"
url="http://deadbeef.sourceforge.net/"
arch="all"
license="Zlib GPL-2.0-or-later LGPL-2.1-or-later"
depends="desktop-file-utils hicolor-icon-theme"
depends_dev="
	alsa-lib-dev
	curl-dev
	ffmpeg-dev
	flac-dev
	gtk+3.0-dev
	jansson-dev
	libmad-dev
	libsamplerate-dev
	libsndfile-dev
	libvorbis-dev
	opusfile-dev
	"
makedepends="$depends_dev intltool gettext bsd-compat-headers"
subpackages="$pkgname-dev $pkgname-lang $pkgname-doc"
source="
	https://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2
	strdupa.patch
	use-endian-h.patch
	"
options="!check" # No test suite

build() {
    LDFLAGS=-lintl ./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--disable-oss \
		--disable-static
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="ae7fe106eb3b87947fa58329dc27b1e0594ccc6ec9e7bc950775de8173fcdbdf0787dc5c32e1dea30f29102a672648dac0a4a79deba95f8cfa8a9ef455fd1aaf  deadbeef-1.8.3.tar.bz2
902c65cc5fd39f9935080a7f5df6d7c17fb366706501957a6b54d796f1b7b64a03fed64f93c9149d9332c4638de35254d526c031af0cd12674efb8d25dff31e1  strdupa.patch
9d933a33c6d78d66d4b6cb448aaeaf60b79e6269ce1c48e314b135f79779cdeb4e541b4c10c8666010b488e10108d0154a84835115933a8c6677f066044a1197  use-endian-h.patch"
